package com.szu.subject.ui.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.szu.subject.domains.Major;

@Mapper
public interface MajorMapper {
	
	public Major getMajorByPK(Long id);

	public int createMajor(Major major);

	public int updateMajor(Major major);

	public int deleteMajor(Long id) ;

	public List<Major> getAllMajor();

	public int batchCreateMajors(List<Major> majors);

	public int batchUpdateMajors(List<Major> majors);

	public int batchDeleteMajors(List<Long> ids);
}
